package state;/** * Created by Administrator on 2018-11-2. */public class NoQuarterState implements State {    NewGumBallMachine newGumBallMachine;    public NoQuarterState(NewGumBallMachine newGumBallMachine){        this.newGumBallMachine = newGumBallMachine;    }    public void insertQuarter() {        System.out.println("you insert a quarter");        newGumBallMachine.setState(newGumBallMachine.getHasQuarterSate());    }    public void ejectQuarter() {        System.out.println("you haven't inserted a quarter");    }    public void trunCrank() {        System.out.println("you turned, but there's no quarter");    }    public void dispense() {        System.out.println("you need to pay first");    }}